package cn.shyouchi.wuguanjia.android.ui.event.rank;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Eenie on 2016/10/28 at 10:36
 * Email: 472279981@qq.com
 * Des:
 */

public class EventRankEntity {


    /**
     * resultCode : 0
     * resultMessage : [{"id":1,"project_id":1,"servicesname":"日报","starttime":1479274680,"endtime":1479289080}]
     */

    private int resultCode;
    private List<ResultMessageBean> resultMessage;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public List<ResultMessageBean> getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(List<ResultMessageBean> resultMessage) {
        this.resultMessage = resultMessage;
    }

    public static class ResultMessageBean implements Parcelable {
        /**
         * id : 1
         * project_id : 1
         * servicesname : 日报
         * starttime : 1479274680
         * endtime : 1479289080
         */

        private int id;
        private int project_id;
        private String servicesname;
        private String starttime;
        private String endtime;

        private boolean checked;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getProject_id() {
            return project_id;
        }

        public void setProject_id(int project_id) {
            this.project_id = project_id;
        }

        public String getServicesname() {
            return servicesname;
        }

        public void setServicesname(String servicesname) {
            this.servicesname = servicesname;
        }

        public String getStarttime() {
            return starttime;
        }

        public void setStarttime(String starttime) {
            this.starttime = starttime;
        }

        public String getEndtime() {
            return endtime;
        }

        public void setEndtime(String endtime) {
            this.endtime = endtime;
        }


        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeInt(this.project_id);
            dest.writeString(this.servicesname);
            dest.writeString(this.starttime);
            dest.writeString(this.endtime);
            dest.writeByte(this.checked ? (byte) 1 : (byte) 0);
        }

        public ResultMessageBean() {
        }

        protected ResultMessageBean(Parcel in) {
            this.id = in.readInt();
            this.project_id = in.readInt();
            this.servicesname = in.readString();
            this.starttime = in.readString();
            this.endtime = in.readString();
            this.checked = in.readByte() != 0;
        }

        public static final Parcelable.Creator<ResultMessageBean> CREATOR = new Parcelable.Creator<ResultMessageBean>() {
            @Override
            public ResultMessageBean createFromParcel(Parcel source) {
                return new ResultMessageBean(source);
            }

            @Override
            public ResultMessageBean[] newArray(int size) {
                return new ResultMessageBean[size];
            }
        };
    }
}
